<?
	if($fetch_array == true)
	{
		$rows = $db_mysql->query($sql);		
		
		$totalRows = $db_mysql->affected_rows;					
		$row = $db_mysql->fetch_array($rows);	
		
		if ($totalRows > 0 && is_array($row)) 
		{ 	
			while(list($field, $value) = each($row))
			{
				if(!is_numeric($field))
				{
					${$field} = $value;
				}
			}			
		}
	}
	if($fetch_array != true)
	{
		while(list($field, $value) = each($row))
		{
			if(!is_numeric($field))
			{
				${$field} = $value;
			}
		}	
	}
?>